3.1087 \(\int \sqrt {\cos (c+d x)} (a+a \sec (c+d x)) (A+C \sec ^2(c+d x)) \, dx\)

Optimal. Leaf size=95 \[ \frac {2 a (3 A+C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}+\frac {2 a (A-C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 a C \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 a C \sin (c+d x)}{d \sqrt {\cos (c+d x)}} \]

[Out]

2*a*(A-C)*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticE(sin(1/2*d*x+1/2*c),2^(1/2))/d+2/3*a*(3*A+C
)*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticF(sin(1/2*d*x+1/2*c),2^(1/2))/d+2/3*a*C*sin(d*x+c)/d
/cos(d*x+c)^(3/2)+2*a*C*sin(d*x+c)/d/cos(d*x+c)^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.21, antiderivative size = 95, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {4114, 3032, 3021, 2748, 2641, 2639} \[ \frac {2 a (3 A+C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}+\frac {2 a (A-C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 a C \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 a C \sin (c+d x)}{d \sqrt {\cos (c+d x)}} \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[Cos[c + d*x]]*(a + a*Sec[c + d*x])*(A + C*Sec[c + d*x]^2),x]

[Out]

(2*a*(A - C)*EllipticE[(c + d*x)/2, 2])/d + (2*a*(3*A + C)*EllipticF[(c + d*x)/2, 2])/(3*d) + (2*a*C*Sin[c + d
*x])/(3*d*Cos[c + d*x]^(3/2)) + (2*a*C*Sin[c + d*x])/(d*Sqrt[Cos[c + d*x]])

Rule 2639

Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2*EllipticE[(1*(c - Pi/2 + d*x))/2, 2])/d, x] /; FreeQ[{
c, d}, x]

Rule 2641

Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2*EllipticF[(1*(c - Pi/2 + d*x))/2, 2])/d, x] /; FreeQ
[{c, d}, x]

Rule 2748

Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[c, Int[(b*S
in[e + f*x])^m, x], x] + Dist[d/b, Int[(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]

Rule 3021

Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f
_.)*(x_)]^2), x_Symbol] :> -Simp[((A*b^2 - a*b*B + a^2*C)*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m + 1))/(b*f*(m +
 1)*(a^2 - b^2)), x] + Dist[1/(b*(m + 1)*(a^2 - b^2)), Int[(a + b*Sin[e + f*x])^(m + 1)*Simp[b*(a*A - b*B + a*
C)*(m + 1) - (A*b^2 - a*b*B + a^2*C + b*(A*b - a*B + b*C)*(m + 1))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, e,
 f, A, B, C}, x] && LtQ[m, -1] && NeQ[a^2 - b^2, 0]

Rule 3032

Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])*((A_.) + (C_.)*sin[(e
_.) + (f_.)*(x_)]^2), x_Symbol] :> -Simp[((b*c - a*d)*(A*b^2 + a^2*C)*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m + 1
))/(b^2*f*(m + 1)*(a^2 - b^2)), x] + Dist[1/(b^2*(m + 1)*(a^2 - b^2)), Int[(a + b*Sin[e + f*x])^(m + 1)*Simp[b
*(m + 1)*(a*C*(b*c - a*d) + A*b*(a*c - b*d)) - ((b*c - a*d)*(A*b^2*(m + 2) + C*(a^2 + b^2*(m + 1))))*Sin[e + f
*x] + b*C*d*(m + 1)*(a^2 - b^2)*Sin[e + f*x]^2, x], x], x] /; FreeQ[{a, b, c, d, e, f, A, C}, x] && NeQ[b*c -
a*d, 0] && NeQ[a^2 - b^2, 0] && LtQ[m, -1]

Rule 4114

Int[(cos[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*((a_) + (b_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (C_.)*sec[(e_.)
 + (f_.)*(x_)]^2), x_Symbol] :> Dist[d^(m + 2), Int[(b + a*Cos[e + f*x])^m*(d*Cos[e + f*x])^(n - m - 2)*(C + A
*Cos[e + f*x]^2), x], x] /; FreeQ[{a, b, d, e, f, A, C, n}, x] &&  !IntegerQ[n] && IntegerQ[m]

Rubi steps

\begin {align*} \int \sqrt {\cos (c+d x)} (a+a \sec (c+d x)) \left (A+C \sec ^2(c+d x)\right ) \, dx &=\int \frac {(a+a \cos (c+d x)) \left (C+A \cos ^2(c+d x)\right )}{\cos ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {2 a C \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2}{3} \int \frac {\frac {3 a C}{2}+\frac {1}{2} a (3 A+C) \cos (c+d x)+\frac {3}{2} a A \cos ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {2 a C \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 a C \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {4}{3} \int \frac {\frac {1}{4} a (3 A+C)+\frac {3}{4} a (A-C) \cos (c+d x)}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {2 a C \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 a C \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+(a (A-C)) \int \sqrt {\cos (c+d x)} \, dx+\frac {1}{3} (a (3 A+C)) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {2 a (A-C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 a (3 A+C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}+\frac {2 a C \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 a C \sin (c+d x)}{d \sqrt {\cos (c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C]  time = 6.41, size = 817, normalized size = 8.60 \[ a \left (\sqrt {\cos (c+d x)} (\cos (c+d x)+1) \left (\frac {C \sec (c) \sin (d x) \sec ^2(c+d x)}{3 d}+\frac {\sec (c) (C \sin (c)+3 C \sin (d x)) \sec (c+d x)}{3 d}-\frac {(\cos (2 c) A+A-2 C) \csc (c) \sec (c)}{2 d}\right ) \sec ^2\left (\frac {c}{2}+\frac {d x}{2}\right )-\frac {A (\cos (c+d x)+1) \csc (c) \left (\frac {\, _2F_1\left (-\frac {1}{2},-\frac {1}{4};\frac {3}{4};\cos ^2\left (d x+\tan ^{-1}(\tan (c))\right )\right ) \sin \left (d x+\tan ^{-1}(\tan (c))\right ) \tan (c)}{\sqrt {1-\cos \left (d x+\tan ^{-1}(\tan (c))\right )} \sqrt {\cos \left (d x+\tan ^{-1}(\tan (c))\right )+1} \sqrt {\cos (c) \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt {\tan ^2(c)+1}} \sqrt {\tan ^2(c)+1}}-\frac {\frac {2 \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt {\tan ^2(c)+1} \cos ^2(c)}{\cos ^2(c)+\sin ^2(c)}+\frac {\sin \left (d x+\tan ^{-1}(\tan (c))\right ) \tan (c)}{\sqrt {\tan ^2(c)+1}}}{\sqrt {\cos (c) \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt {\tan ^2(c)+1}}}\right ) \sec ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}{2 d}+\frac {C (\cos (c+d x)+1) \csc (c) \left (\frac {\, _2F_1\left (-\frac {1}{2},-\frac {1}{4};\frac {3}{4};\cos ^2\left (d x+\tan ^{-1}(\tan (c))\right )\right ) \sin \left (d x+\tan ^{-1}(\tan (c))\right ) \tan (c)}{\sqrt {1-\cos \left (d x+\tan ^{-1}(\tan (c))\right )} \sqrt {\cos \left (d x+\tan ^{-1}(\tan (c))\right )+1} \sqrt {\cos (c) \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt {\tan ^2(c)+1}} \sqrt {\tan ^2(c)+1}}-\frac {\frac {2 \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt {\tan ^2(c)+1} \cos ^2(c)}{\cos ^2(c)+\sin ^2(c)}+\frac {\sin \left (d x+\tan ^{-1}(\tan (c))\right ) \tan (c)}{\sqrt {\tan ^2(c)+1}}}{\sqrt {\cos (c) \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt {\tan ^2(c)+1}}}\right ) \sec ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}{2 d}-\frac {A (\cos (c+d x)+1) \csc (c) \, _2F_1\left (\frac {1}{4},\frac {1}{2};\frac {5}{4};\sin ^2\left (d x-\tan ^{-1}(\cot (c))\right )\right ) \sec \left (d x-\tan ^{-1}(\cot (c))\right ) \sqrt {1-\sin \left (d x-\tan ^{-1}(\cot (c))\right )} \sqrt {-\sqrt {\cot ^2(c)+1} \sin (c) \sin \left (d x-\tan ^{-1}(\cot (c))\right )} \sqrt {\sin \left (d x-\tan ^{-1}(\cot (c))\right )+1} \sec ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}{d \sqrt {\cot ^2(c)+1}}-\frac {C (\cos (c+d x)+1) \csc (c) \, _2F_1\left (\frac {1}{4},\frac {1}{2};\frac {5}{4};\sin ^2\left (d x-\tan ^{-1}(\cot (c))\right )\right ) \sec \left (d x-\tan ^{-1}(\cot (c))\right ) \sqrt {1-\sin \left (d x-\tan ^{-1}(\cot (c))\right )} \sqrt {-\sqrt {\cot ^2(c)+1} \sin (c) \sin \left (d x-\tan ^{-1}(\cot (c))\right )} \sqrt {\sin \left (d x-\tan ^{-1}(\cot (c))\right )+1} \sec ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}{3 d \sqrt {\cot ^2(c)+1}}\right ) \]

Warning: Unable to verify antiderivative.

[In]

Integrate[Sqrt[Cos[c + d*x]]*(a + a*Sec[c + d*x])*(A + C*Sec[c + d*x]^2),x]

[Out]

a*(Sqrt[Cos[c + d*x]]*(1 + Cos[c + d*x])*Sec[c/2 + (d*x)/2]^2*(-1/2*((A - 2*C + A*Cos[2*c])*Csc[c]*Sec[c])/d +
 (C*Sec[c]*Sec[c + d*x]^2*Sin[d*x])/(3*d) + (Sec[c]*Sec[c + d*x]*(C*Sin[c] + 3*C*Sin[d*x]))/(3*d)) - (A*(1 + C
os[c + d*x])*Csc[c]*HypergeometricPFQ[{1/4, 1/2}, {5/4}, Sin[d*x - ArcTan[Cot[c]]]^2]*Sec[c/2 + (d*x)/2]^2*Sec
[d*x - ArcTan[Cot[c]]]*Sqrt[1 - Sin[d*x - ArcTan[Cot[c]]]]*Sqrt[-(Sqrt[1 + Cot[c]^2]*Sin[c]*Sin[d*x - ArcTan[C
ot[c]]])]*Sqrt[1 + Sin[d*x - ArcTan[Cot[c]]]])/(d*Sqrt[1 + Cot[c]^2]) - (C*(1 + Cos[c + d*x])*Csc[c]*Hypergeom
etricPFQ[{1/4, 1/2}, {5/4}, Sin[d*x - ArcTan[Cot[c]]]^2]*Sec[c/2 + (d*x)/2]^2*Sec[d*x - ArcTan[Cot[c]]]*Sqrt[1
 - Sin[d*x - ArcTan[Cot[c]]]]*Sqrt[-(Sqrt[1 + Cot[c]^2]*Sin[c]*Sin[d*x - ArcTan[Cot[c]]])]*Sqrt[1 + Sin[d*x -
ArcTan[Cot[c]]]])/(3*d*Sqrt[1 + Cot[c]^2]) - (A*(1 + Cos[c + d*x])*Csc[c]*Sec[c/2 + (d*x)/2]^2*((Hypergeometri
cPFQ[{-1/2, -1/4}, {3/4}, Cos[d*x + ArcTan[Tan[c]]]^2]*Sin[d*x + ArcTan[Tan[c]]]*Tan[c])/(Sqrt[1 - Cos[d*x + A
rcTan[Tan[c]]]]*Sqrt[1 + Cos[d*x + ArcTan[Tan[c]]]]*Sqrt[Cos[c]*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2]]*
Sqrt[1 + Tan[c]^2]) - ((Sin[d*x + ArcTan[Tan[c]]]*Tan[c])/Sqrt[1 + Tan[c]^2] + (2*Cos[c]^2*Cos[d*x + ArcTan[Ta
n[c]]]*Sqrt[1 + Tan[c]^2])/(Cos[c]^2 + Sin[c]^2))/Sqrt[Cos[c]*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2]]))/
(2*d) + (C*(1 + Cos[c + d*x])*Csc[c]*Sec[c/2 + (d*x)/2]^2*((HypergeometricPFQ[{-1/2, -1/4}, {3/4}, Cos[d*x + A
rcTan[Tan[c]]]^2]*Sin[d*x + ArcTan[Tan[c]]]*Tan[c])/(Sqrt[1 - Cos[d*x + ArcTan[Tan[c]]]]*Sqrt[1 + Cos[d*x + Ar
cTan[Tan[c]]]]*Sqrt[Cos[c]*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2]]*Sqrt[1 + Tan[c]^2]) - ((Sin[d*x + Arc
Tan[Tan[c]]]*Tan[c])/Sqrt[1 + Tan[c]^2] + (2*Cos[c]^2*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2])/(Cos[c]^2
+ Sin[c]^2))/Sqrt[Cos[c]*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2]]))/(2*d))

________________________________________________________________________________________

fricas [F]  time = 0.72, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (C a \sec \left (d x + c\right )^{3} + C a \sec \left (d x + c\right )^{2} + A a \sec \left (d x + c\right ) + A a\right )} \sqrt {\cos \left (d x + c\right )}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))*(A+C*sec(d*x+c)^2)*cos(d*x+c)^(1/2),x, algorithm="fricas")

[Out]

integral((C*a*sec(d*x + c)^3 + C*a*sec(d*x + c)^2 + A*a*sec(d*x + c) + A*a)*sqrt(cos(d*x + c)), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (C \sec \left (d x + c\right )^{2} + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )} \sqrt {\cos \left (d x + c\right )}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))*(A+C*sec(d*x+c)^2)*cos(d*x+c)^(1/2),x, algorithm="giac")

[Out]

integrate((C*sec(d*x + c)^2 + A)*(a*sec(d*x + c) + a)*sqrt(cos(d*x + c)), x)

________________________________________________________________________________________

maple [B]  time = 9.77, size = 437, normalized size = 4.60 \[ -\frac {4 \sqrt {-\left (-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, a \left (\frac {A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \left (\EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-\EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )}{2 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}}+\frac {C \left (-\sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+2 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}{2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \left (2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right )}+\frac {C \left (-\frac {\cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}}{6 \left (-\frac {1}{2}+\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}+\frac {\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )}{3 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}}\right )}{2}\right )}{\sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*sec(d*x+c))*(A+C*sec(d*x+c)^2)*cos(d*x+c)^(1/2),x)

[Out]

-4*(-(-2*cos(1/2*d*x+1/2*c)^2+1)*sin(1/2*d*x+1/2*c)^2)^(1/2)*a*(1/2*A*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*cos(1/2
*d*x+1/2*c)^2+1)^(1/2)/(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)*(EllipticF(cos(1/2*d*x+1/2*c),2^(1
/2))-EllipticE(cos(1/2*d*x+1/2*c),2^(1/2)))+1/2*C*(-(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)*(sin(
1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))+2*(-2*sin(1/2*d
*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)*cos(1/2*d*x+1/2*c)*sin(1/2*d*x+1/2*c)^2)/sin(1/2*d*x+1/2*c)^2/(2*sin(1
/2*d*x+1/2*c)^2-1)+1/2*C*(-1/6*cos(1/2*d*x+1/2*c)*(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)/(-1/2+c
os(1/2*d*x+1/2*c)^2)^2+1/3*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*cos(1/2*d*x+1/2*c)^2+1)^(1/2)/(-2*sin(1/2*d*x+1/2*
c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))))/sin(1/2*d*x+1/2*c)/(2*cos(1/2*d*x+1/2
*c)^2-1)^(1/2)/d

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (C \sec \left (d x + c\right )^{2} + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )} \sqrt {\cos \left (d x + c\right )}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))*(A+C*sec(d*x+c)^2)*cos(d*x+c)^(1/2),x, algorithm="maxima")

[Out]

integrate((C*sec(d*x + c)^2 + A)*(a*sec(d*x + c) + a)*sqrt(cos(d*x + c)), x)

________________________________________________________________________________________

mupad [B]  time = 5.23, size = 123, normalized size = 1.29 \[ \frac {2\,A\,a\,\mathrm {E}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d}+\frac {2\,A\,a\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d}+\frac {2\,C\,a\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {1}{4},\frac {1}{2};\ \frac {3}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{d\,\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {{\sin \left (c+d\,x\right )}^2}}+\frac {2\,C\,a\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {3}{4},\frac {1}{2};\ \frac {1}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{3\,d\,{\cos \left (c+d\,x\right )}^{3/2}\,\sqrt {{\sin \left (c+d\,x\right )}^2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(c + d*x)^(1/2)*(A + C/cos(c + d*x)^2)*(a + a/cos(c + d*x)),x)

[Out]

(2*A*a*ellipticE(c/2 + (d*x)/2, 2))/d + (2*A*a*ellipticF(c/2 + (d*x)/2, 2))/d + (2*C*a*sin(c + d*x)*hypergeom(
[-1/4, 1/2], 3/4, cos(c + d*x)^2))/(d*cos(c + d*x)^(1/2)*(sin(c + d*x)^2)^(1/2)) + (2*C*a*sin(c + d*x)*hyperge
om([-3/4, 1/2], 1/4, cos(c + d*x)^2))/(3*d*cos(c + d*x)^(3/2)*(sin(c + d*x)^2)^(1/2))

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ a \left (\int A \sqrt {\cos {\left (c + d x \right )}}\, dx + \int A \sqrt {\cos {\left (c + d x \right )}} \sec {\left (c + d x \right )}\, dx + \int C \sqrt {\cos {\left (c + d x \right )}} \sec ^{2}{\left (c + d x \right )}\, dx + \int C \sqrt {\cos {\left (c + d x \right )}} \sec ^{3}{\left (c + d x \right )}\, dx\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))*(A+C*sec(d*x+c)**2)*cos(d*x+c)**(1/2),x)

[Out]

a*(Integral(A*sqrt(cos(c + d*x)), x) + Integral(A*sqrt(cos(c + d*x))*sec(c + d*x), x) + Integral(C*sqrt(cos(c
+ d*x))*sec(c + d*x)**2, x) + Integral(C*sqrt(cos(c + d*x))*sec(c + d*x)**3, x))

________________________________________________________________________________________